package io;

import java.io.*;
import java.util.Arrays;

public class Test {
    public static void main(String[] args) throws IOException {
        /*
        小写字母写入fos.txt
         */
        File file = new File("fos.txt");
        FileOutputStream fos = new FileOutputStream(file);
        for(int i=1;i<=26;i++) {

          //  byte[] arr =new byte[(int)(file.length())];
          //   arr=char(96+i);
          //  String str =
            fos.write(96+i);
        }
        System.out.println("写出完毕");
        fos.close();

        FileInputStream fis = new FileInputStream(file);
        int a =fis.read();
        char c = (char)a;
        System.out.println(c);
        fis.close();



    }
}
